package com.li.pojo;

import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.stereotype.Component;
import sun.reflect.MethodAccessor;

import java.lang.reflect.Method;
import java.util.Arrays;
@Component
public class Log implements MethodBeforeAdvice {
    public void before(Method method,Object []objects,Object target) throws Throwable{
        System.out.println(target.getClass().getName()+"的"+method.getName()+"被执行");
    }

}
